﻿@model PessModel.PaperRule

@{
    ViewBag.Title = "Delete";
}

<h2>Delete</h2>
<div id="operate">
    @Html.ActionLink("Back", "Index", "Rule", new { activityID = Model.ActivityID }, null)
</div>

<fieldset class="show">
          <legend></legend>
    <div class="display-label">
         @Html.DisplayNameFor(model => model.Name)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Name)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Description)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Description)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Value)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Value)
    </div>
</fieldset>
@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    <p>
        <h3>If the rule has been used, the rule cannot be deleted. This rule has been used @Model.PaperScores.Count times. </h3>
        <h3>Are you sure to delete the rule?&#8195;</h3>
        <div class="del_btn">
            &#8195;<input type="submit" value="Delete" /> </div>
</p>
}
